package cn.qiyu5522.tk_ems.service;

import cn.qiyu5522.tk_ems.entity.Major;
import cn.qiyu5522.tk_ems.entity.vo.MajorVO;
import cn.qiyu5522.tk_ems.entity.dto.QueryParamDTO;
import cn.qiyu5522.tk_ems.result.R;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Tonkey
 * @since 2023-02-04
 */
public interface MajorService extends IService<Major> {

    R queryMajorByPageCondition(QueryParamDTO<MajorVO> queryParamDTO);

    R saveMore(List<MajorVO> majorVOS);

    R removeMore(List<Long> ids);

    List<Major> getForIdAndNameDepId();

    R queryForIdAndNameByDepartmentId(Long id);

    R queryByName(String name);
}
